package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity1 extends AppCompatActivity {

    private ImageView tc;
    private EditText et_username;
    private EditText et_relname;
    private EditText et_email;
    private Button btn_regist;
    private EditText et_email1;
    private String name;
    private String password;
    private EditText email;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();

    }

    private void initView() {
        tc = findViewById(R.id.tc);
        et_username = findViewById(R.id.et_username);
        et_relname = findViewById(R.id.et_relname);
        et_email = findViewById(R.id.et_email);
        et_email1 = findViewById(R.id.et_email1);
        btn_regist = findViewById(R.id.btn_regist);
    }

    private void initData() {
        name = et_username.getText().toString().trim();
        password = et_email.getText().toString().trim();
        password = et_email1.getText().toString().trim();
    }

    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.:
                initData();
                Intent intent = new Intent(MainActivity1.this, MainActivity.class);
                startActivity(intent);
                break;
        }
    }
}